package indi.kider.server.meter.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import pers.vankid.common.utils.jdk.SocketUtil;
@Component
public class SocketConfiger {
    @Value("${rent-socket.host}")
    private String host;
    @Value("${rent-socket.port}")
    private int port;
    @Bean("socketUtil")
    public SocketUtil initSocket(){
        return new SocketUtil(host,port);
    }
}
